package glazedlists.chapter3;

import ca.odell.glazedlists.TextFilterator;
import ca.odell.issuezilla.Issue;

import java.util.List;

public class IssueTextFilterator implements TextFilterator<Issue> {

    @Override
    public void getFilterStrings(List<String> baseList, Issue issue) {
        baseList.add(issue.getComponent());
        baseList.add(issue.getIssueType());
        baseList.add(issue.getOperatingSystem());
        baseList.add(issue.getResolution());
        baseList.add(issue.getShortDescription());
        baseList.add(issue.getStatus());
        baseList.add(issue.getSubcomponent());
        baseList.add(issue.getVersion());
    }
}
